package com.video.web.task;

import com.video.video.domain.DGoods;
import com.video.video.service.IDGoodsService;
import com.video.video.service.IDSoldGoodsService;
import com.video.video.service.IDUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 定时任务调度
 *
 * 将到期的VIP会员转成普通会员
 *
 */
@Component("vipTask")
public class DUserVipTask
{

    @Autowired
    private IDUserService idUserService;


    /**
     * 将所有到期的vip 用户 都调整为 普通用户
     *
     */
    public void execVipBecomeDue()
    {
        idUserService.updateBecomeDueVip();
    }
}
